package homework.mid_autumn_festival.string_exercise;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String str = "abc123def456ghi";
        String[] data = str.split("[0-9]+");
        System.out.println(Arrays.toString(data));

        str = "123.1456";
        data = str.split("\\.");
        System.out.println(Arrays.toString(data));

        str = "=123==456==78=====";
        data = str.split("=");
        System.out.println(Arrays.toString(data));
    }
}
